#include<iostream>
#include<string>
using namespace std;
class Solution {
public:
    bool isfunc(char ch)
    {
        if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
            return true;
        return false;
    }
    bool halvesAreAlike(string s) {
        int mid = s.size() / 2;
        int left = 0;
        int right = 0;
        for (int i = 0; i < mid; ++i)
        {
            char ch = tolower(s[i]);
            if (isfunc(ch))
                left++;
        }
        for (int i = mid; i < 2 * mid; ++i)
        {
            char ch = tolower(s[i]);
            if (isfunc(ch))
                right++;
        }
        return left == right;
    }
};
int main()
{
    string s = "Uo";
    cout << Solution().halvesAreAlike(s) << endl;
	return 0;
}
